//
//  LLGeneralSwitchCellModel.m
//  TaoTuo
//
//  Created by admin on 2019/11/8.
//  Copyright © 2019 admin. All rights reserved.
//

#import "LLGeneralSwitchCellModel.h"

@implementation LLGeneralSwitchCellModel

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
                switchBlock:(nonnull SwitchChangeValueBlock)switchBlock
                       isOn:(BOOL)isOn
{
    return [self setModelWithImageName:imageName title:title  contentAttributedString:contentAttributedString detailAttributedString:nil switchBlock:switchBlock isOn:isOn];
}

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
     detailAttributedString:(NSMutableAttributedString * _Nullable)detailAttributedString
                switchBlock:(nonnull SwitchChangeValueBlock)switchBlock
                       isOn:(BOOL)isOn
{
    LLGeneralSwitchCellModel *model = [self setModelWithImageName:imageName title:title contentAttributedString:contentAttributedString detailAttributedString:detailAttributedString];
    model.isOn = isOn;
    model.switchBlock = switchBlock;
    return model;
}

@end
